import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as filters from './utils/index'
//引入vant
import { Divider, Button, NoticeBar, Overlay, Rate, Stepper, Tab, Tabs, RadioGroup, Radio } from 'vant';
//字体图标库
import './assets/iconfont/iconfont.css';
import './assets/iconfont/iconfont'
//引入重置样式
import './assets/style/reset.css';
//引入全局样式
import './assets/style/global.css'
//激活vant
Vue.use(Button)
Vue.use(NoticeBar)
Vue.use(Overlay)
Vue.use(Rate)
Vue.use(Stepper)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(Divider)
Object.keys(filters).forEach(v => {
  // 注册
  Vue.filter(v, filters[v])
})
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
